<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>MyHtml.html</title>
	
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="this is my page">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    
<script src="jquery-1.6.2.min.js"></script> 
<script src="json2.js"></script>
<script src="jupiter.js"></script>

  </head>
  
  <body>
   
<script>

    $(document).ready(function()
    {
    		
    });
    function insert(){
    var json=JSON.stringify($('#form1').serializeObject());
    	$.ajax({type: "post",url: "/simpleJupiter/rest/mybean",data:{"type":"insert","json":json}});
		//alert(JSON.stringify($('#form1').serializeObject()));
    };


</script>
<form id="form1">
<input type="hidden" name="id" size="10" value="1"/>
名称：<input type="text" name="name" size="10">
省：<input type="text" name="state" size="10">
</form>
<button name="bn1" onclick="insert()">添加</button>
  </body>
</html>